package com.xdjd.mobile.business.dao.mapper.member;

import com.xdjd.mobile.business.entity.model.member.MemberUserPo;
import net.oschina.durcframework.easymybatis.dao.CrudDao;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

public interface MemberUserPoDao extends CrudDao<MemberUserPo> {
    @Select("select * from member_user where account=#{searchInfo} or invite_code=#{searchInfo}")
    @ResultMap(baseResultMap)
    MemberUserPo findByAccountOrInviteCode(@Param("searchInfo") String searchInfo);
}